package com.zixuan.controller;

import com.zixuan.common.Result;
import com.zixuan.entity.PurchaseApplicationEntity;
import com.zixuan.service.PurchaseApplicationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 此接口  管理员同意审批之后的资产就会进入到这个里面 就可以准备发放了
 */
@RestController
@RequestMapping("/sys/purChaseApplication")
public class PurchaseApplicationController {
    @Autowired
    private PurchaseApplicationService purchaseApplicationService;

    @PostMapping("/addPurChaseApplication")
    public Result addPurChaseApplication(@RequestBody PurchaseApplicationEntity purchaseApplicationEntity){

        return  purchaseApplicationService.addPurChaseApplication(purchaseApplicationEntity);
    }
}
